import axios from "../utils/request";
//获取搜索框中的帖子数据
export const $getSearchPosts=async(params)=> {
    let {data} = await axios.get('post/recommendations', {params: params});
    return data;
}
//获取搜索框中用户数据
export const $getSearchUsers=async(params)=> {
    let {data} = await axios.get('auth/searchUser', {params: params});
    return data;
}
//根据标签id查询用户
export const $getSearchUsersId=async(params)=> {
    let {data} = await axios.get('auth/getUsersByTag', {params: params});
    return data;
}
//根据标签id查询帖子
export const $getSearchPostsId=async(params)=> {
    let {data} = await axios.get('post/getPostsByTag', {params: params});
    return data;
}